package com.mybatis.demo.service;

import com.mybatis.demo.mapper.UserInfoMapper;
import com.mybatis.demo.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {

    @Autowired
    private UserInfoMapper userInfoDao;
    public List<UserInfo> selectUser() {
        return userInfoDao.selectAll();
    }
}
